#define _CRT_SECURE_NO_WARNINGS 1
#include"Heap.h"

int main()
{
	int arr[] = { 10,3,2,4,4,6,8,3,7 };
	Heap h1;
	HeapCreate(&h1);
	for (int i = 0; i < 9; i++)
	{
		HeapPush(&h1, arr[i]);
	}
	int k = 9;
	while (k--)
	{
		printf("%d ", HeapTop(&h1));
		HeapPop(&h1);
	}
	return 0;
}